home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / demo / igps_102.zip / PHONEDOC.CPP < prev    next >
C/C++ Source or Header  |  1994-06-23  |  2KB  |  88 lines

  1. // phonedoc.cpp : implementation of the CPhoneDoc class
  2. //
  3. // no change from MFC generated skeleton
  4. //
  5. #include "stdafx.h"
  6. #include "mphone.h"
  7.  
  8. #include "phonedoc.h"
  9.  
  10. #ifdef _DEBUG
  11. #undef THIS_FILE
  12. static char BASED_CODE THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CPhoneDoc
  17.  
  18. IMPLEMENT_DYNCREATE(CPhoneDoc, CDocument)
  19.  
  20. BEGIN_MESSAGE_MAP(CPhoneDoc, CDocument)
  21.     //{{AFX_MSG_MAP(CPhoneDoc)
  22.         // NOTE - the ClassWizard will add and remove mapping macros here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code!
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27. BEGIN_DISPATCH_MAP(CPhoneDoc, CDocument)
  28.     //{{AFX_DISPATCH_MAP(CPhoneDoc)
  29.         // NOTE - the ClassWizard will add and remove mapping macros here.
  30.         //      DO NOT EDIT what you see in these blocks of generated code!
  31.     //}}AFX_DISPATCH_MAP
  32. END_DISPATCH_MAP()
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CPhoneDoc construction/destruction
  36.  
  37. CPhoneDoc::CPhoneDoc()
  38. {
  39. }
  40.  
  41. CPhoneDoc::~CPhoneDoc()
  42. {
  43. }
  44.  
  45. BOOL CPhoneDoc::OnNewDocument()
  46. {
  47.     if (!CDocument::OnNewDocument())
  48.         return FALSE;
  49.  
  50.     // TODO: add reinitialization code here
  51.     // (SDI documents will reuse this document)
  52.  
  53.     return TRUE;
  54. }
  55.  
  56. /////////////////////////////////////////////////////////////////////////////
  57. // CPhoneDoc serialization
  58.  
  59. void CPhoneDoc::Serialize(CArchive& ar)
  60. {
  61.     if (ar.IsStoring())
  62.     {
  63.         // TODO: add storing code here
  64.     }
  65.     else
  66.     {
  67.         // TODO: add loading code here
  68.     }
  69. }
  70.  
  71. /////////////////////////////////////////////////////////////////////////////
  72. // CPhoneDoc diagnostics
  73.  
  74. #ifdef _DEBUG
  75. void CPhoneDoc::AssertValid() const
  76. {
  77.     CDocument::AssertValid();
  78. }
  79.  
  80. void CPhoneDoc::Dump(CDumpContext& dc) const
  81. {
  82.     CDocument::Dump(dc);
  83. }
  84. #endif //_DEBUG
  85.  
  86. /////////////////////////////////////////////////////////////////////////////
  87. // CPhoneDoc commands
  88.